package custom_style;

import de.ralbus.stellplatz.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

public class CustomWindow extends Activity {
	protected TextView title;
	protected View icon;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
 
        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
 
        setContentView(R.layout.start);
 
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
        
        title = (TextView) findViewById(R.id.title);
//        icon = findViewById(R.id.icomEinstellung);
        
      //----------------------------------------------POI Suche-----------------------------------------		 
	     
		View.OnTouchListener eventHandler_button1 = new View.OnTouchListener() {
			
			@Override
			public boolean onTouch(View v, MotionEvent event) {
				openOptionsMenu();
				return true;
			}
		 	};
		 	icon = findViewById(R.id.icomEinstellung);
		 	icon.setOnTouchListener(eventHandler_button1);
//		 	
////----------------------------------------------Umgebungssuche------------------------------------	
//    }
//    private void datenbankHolen() {
//    	finish();
    	}
}
